package com.leha.mp.api.form;

import com.leha.mp.core.entity.mybatis.PlConsultingMsg;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.leha.mp.core.Utils.BeanUtil;

@Data
@ApiModel
public class MsgForm {
    @ApiModelProperty
    private Integer consultingId;
    @ApiModelProperty
    private Integer userId;
    @ApiModelProperty
    private Integer doctorId;
    @ApiModelProperty
    private Byte msgType;
    @ApiModelProperty
    private String msgContent;
    @ApiModelProperty
    private String attachment;
    @ApiModelProperty
    private Byte isReplay;

    public PlConsultingMsg toDateModel() {
        PlConsultingMsg u = new PlConsultingMsg();
        BeanUtil.copyNotNullBean(this, u);
        return u;
    }
}
